<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form method="post">
        <table bgcolor="#faebd7" border="1">
            <th>emp_id</th>
            <th>emp_name</th>
            <th>dept_id</th>
            <th>job_name</th>
            <th>join_date</th>
            <th>telephone</th>
            <c:forEach items="${all}" var="em">

                <tr>
                    <td>${em.emp_id}</td>
                    <td>${em.emp_name}</td>
                    <td>${em.dept_id}</td>
                    <td>${em.job_name}</td>
                    <td>${em.join_date}</td>
                    <td>${em.telephone}</td>

                </tr>
            </c:forEach>
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/add.jsp">添加员工</a>
        </table>
    </form>
</body>
</html>
